// 1. attr  三级导航栏 数据 约束
// 单个数据约束
export interface categoryModel{
  id: number,
  name:string
}
// 定义别名
export type numberable = undefined | number
export type categoryListModel = categoryModel[]
export interface categoryIds{
  category1Id: numberable,
  category2Id: numberable,
  category3Id: numberable,
}
// 完整数据约束
export interface categoryListInfoModel extends categoryIds{
  category1List: categoryListModel,
  category2List: categoryListModel,
  category3List: categoryListModel
}

// 2. attr 添加数据 类型约束
// 单个数据
export interface attrValueModel{
  id?: number,
  attrId?: number,
  valueName: string,
  isShowInput: boolean
}
// 定义类
export type attrValueListModel=attrValueModel[]
// 请求完整的数据
export interface attrInfoModel{
  id?: number,
  attrName: string,
  attrValueList: attrValueListModel,
  categoryId: number,
  categoryLevel: number,
}
// 定义类
export type attrInfoListModel=attrInfoModel[]